package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerDao {
    List<Customer> findPageByName(@Param("size") Integer size,
                                  @Param("rows") Integer rows,
                                  @Param("customerName") String customerName);

    Integer getTotal(@Param("customerName") String customerName);

    void update(@Param("customer") Customer customer);

    void save(@Param("customer") Customer customer);

    void delete(@Param("ids") String[] split);
}
